package com.wondersgroup.ndktest2;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;


public class MainActivity extends AppCompatActivity {

    // Used to load the 'native-lib' library on application startup.
    static {
        System.loadLibrary("native-lib");
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        // Example of a call to a native method
        TextView tv = (TextView) findViewById(R.id.sample_text);
        tv.setText(stringFromJNI()+ Utis.getAddValue(10,20));//



//        int[] arr = {20,10,3,4,7,345,567,34,46};
//        Util util = new Util();
//        util.processArr(arr);

//        for (int i=0,size = arr.length; i <size; i++){
//            Log.e("MainActivity", "arr [" +i+"] = "+ arr[i] );
//        }
    }

    /**
     * A native method that is implemented by the 'native-lib' native library,
     * which is packaged with this application.
     */
    public native String stringFromJNI();
}
